package work.mediway.mdm.biz.entity.biz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2022/7/11
 */
@ApiModel(value = "数据质量配置对照")
@Data
@TableName(value = "SS_Data_Quality_Config_Item")
public class SsDataQualityConfigItem implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id", hidden = true)
    private Integer id;

    /**
     * 配置关联id
     */
    @TableField(value = "data_quality_config_id")
    @ApiModelProperty(value = "配置关联id", hidden = true)
    private Integer dataQualityConfigId;

    /**
     * 源系统字段
     */
    @TableField(value = "source_system_field")
    @ApiModelProperty(value = "源系统字段")
    @NotBlank(message = "不能为空")
    private String sourceSystemField;

    /**
     * 目标系统字段
     */
    @TableField(value = "target_system_field")
    @ApiModelProperty(value = "目标系统字段")
    @NotBlank(message = "不能为空")
    private String targetSystemField;

    /**
     * 是否唯一值字段
     */
    @TableField(value = "unique_flag")
    @ApiModelProperty(value = "是否唯一值字段(Y/N)")
    private String uniqueFlag;

    private static final long serialVersionUID = 636607622105867776L;
}